package com.usian.controller;

import com.github.pagehelper.PageInfo;
import com.usian.config.FeignOrder;
import com.usian.shop.entity.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/order")
public class ControllerOrder {
    @Autowired
    private FeignOrder feignOrder;
    @RequestMapping("/findAlls")
public PageInfo findAlls(@RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize, @RequestBody Order order){
return  feignOrder.findAlls(pageNum,pageSize,order);
    }
}
